// 持久化存储token 对外暴露一个函数
export const setToken = (token) => {
  localStorage.setItem ('TOKEN', token)
}

export const getToken = () => {
  return localStorage.getItem ('TOKEN') // 要有返回值
}

export const removeToken = () => {
  localStorage.removeItem ('TOKEN')
}